package com.noteit.login;  
  
import org.apache.struts2.ServletActionContext;  
  
import com.opensymphony.xwork2.ActionSupport;  
  
public class LogoutAction extends ActionSupport {  

	private static final long serialVersionUID = 8053354104806427400L;

	// all struts logic here  
     public String execute() {  
        
      ServletActionContext.getRequest().getSession().invalidate();  
      addActionMessage("You are successfully logout!");  
      return "logout";  
      
     }
}  
